package com.ssh.action.petdiary;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionSupport;
import com.ssh.biz.IPetdiaryBiz;
import com.ssh.entity.Petdiary;

@Controller
@Scope("prototype")
public class DiaryDetailAction extends ActionSupport{
	@Resource
	private IPetdiaryBiz iPetdiaryBiz;
	private Petdiary petdiary;
	private int diaryId;
	
	
	public String execute(){
		petdiary = iPetdiaryBiz.findPetdiaryByID(diaryId);
		return "success";
	}
	
	
	public IPetdiaryBiz getiPetdiaryBiz() {
		return iPetdiaryBiz;
	}
	public void setiPetdiaryBiz(IPetdiaryBiz iPetdiaryBiz) {
		this.iPetdiaryBiz = iPetdiaryBiz;
	}
	public Petdiary getPetdiary() {
		return petdiary;
	}
	public void setPetdiary(Petdiary petdiary) {
		this.petdiary = petdiary;
	}
	public int getDiaryId() {
		return diaryId;
	}
	public void setDiaryId(int diaryId) {
		this.diaryId = diaryId;
	}
}
